package generator.entity

case class RowInfo(cj1_tableName:String,
                   fromTableName:String,
                   fromTableField:String,
                   fromExp:String,
                   cj2_tableName:String,
                   cj2_field:String,
                   transformExp:String="",
                   msg:String="") {
  override def equals(obj: Any) = obj match {
    case that: RowInfo =>
      this.cj1_tableName == that.cj1_tableName && this.cj1_tableName == that.cj1_tableName &&
        this.fromTableField == that.fromTableField && this.fromExp == that.fromExp &&
        this.cj2_tableName == that.cj2_tableName && this.cj2_field == that.cj2_field &&
        this.transformExp == that.transformExp && this.msg == that.msg
    case _ => false
  }

  override def hashCode = (cj1_tableName + fromTableName + fromTableField+ fromExp + cj2_tableName+cj2_field+transformExp+msg).hashCode
}
